#ifndef RECORD_MANAGER_H
#define RECORD_MANAGER_H

#include <stdio.h>
#include <string>
#include <vector>
#include <map>
#include "himutex.h"
#include "record_util.h"
using namespace std;

class RecordManager
{
public:
    RecordManager();
    ~RecordManager();

public:
    string start_record(vector<string> params);
    string stop_record(vector<string>& params);
    string get_record_state(vector<string> params);
    bool check_stream(const string& url);

private:
    HiMutex lock_map_record_util_;
    map<int, RecordUtil*>map_record_uitl_;
};

#endif //RECORD_MANAGER_H